<template>
  <div>
    参数信息：{{route.params}}
  </div>
  <div>
    path：{{route.path}}
  </div>
  <div>
    query：{{route.query}}
  </div>
</template>

<script setup>
import { useRoute} from 'vue-router';
// 获取路由信息
const route = useRoute();
console.log(route);
console.log(route.params);
</script>

<style scoped>
div{
  text-align: left;
}
</style>
